package electricity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import electricity.domain.EquipmentRepair;
import electricity.dto.DeviceQueryDTO;
import electricity.dto.RepairDto;
import org.apache.ibatis.annotations.Param;

/**
* @author haoyi
* @description 针对表【equipment_repair】的数据库操作Mapper
* @createDate 2025-07-18 09:59:06
* @Entity electricity.domain.EquipmentRepair
*/
public interface EquipmentRepairMapper extends BaseMapper<EquipmentRepair> {

    int deleteByPrimaryKey(Long id);

    int insert(EquipmentRepair record);

    int insertSelective(EquipmentRepair record);

    EquipmentRepair selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(EquipmentRepair record);

    int updateByPrimaryKey(EquipmentRepair record);

    Page<EquipmentRepair> pageQuery(RepairDto repairDto);

    void updateProcessor(@Param("repairId") Integer repairId,
                         @Param("processorId") Integer processorId);
    EquipmentRepair selectByRepairId(String repairId);
}
